/*
 * @Author: Wangtao
 * @Date: 2020-09-18 11:41:07
 * @LastEditors: Wangtao
 * @LastEditTime: 2021-04-09 18:03:05
 */
import Vue from 'vue'
import Vuex from 'vuex'
import { CommonState } from './modules/common'
import { CallCardModule } from './modules/cti/callCard'
import { IPermissionState } from './modules/permission/index'

Vue.use(Vuex)

export interface IRootState {
   common: CommonState,
   CallCardModule,
   permission: IPermissionState
}

// Declare empty store first, dynamically register all modules later.
export default new Vuex.Store<IRootState>({})
